package it.terry.bussola.hardware;


import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;

import android.content.Context;

public class SensorEvent extends Object{
	
	public int accuracy;
	public Sensor sensor;
	public String time;
	public float[] values = new float[3];
	public int type;
	@SuppressWarnings("unused")
	private Context mContext;
	
	public static final String DATE_FORMAT = "dd-MM-yyyy HH:mm:ss";
	Calendar calendar = new GregorianCalendar();
	
	//Costruttore
	public SensorEvent(Context context, float[] values2, int type2) {
		super();
		mContext = context;
        values = values2;
        type = type2;
        SimpleDateFormat dataFormat = new SimpleDateFormat(DATE_FORMAT);
        time = dataFormat.format(calendar.getTime());
	}

}
